<?php

namespace app\index\model;

use think\Model;
use think\Db;

class Resume extends Model
{
	public function addresume($param){
		$this->startTrans();
		try{
			$this->allowField(true)->save($param,['id'=>$param['id']]);
			$this->commit();
			return true;
		}catch(\Exception $e){
			$this->rollback();
			$this->error = $e;
			return false;
		}
	}
}